class Compile {
    constructor(el, vm) {
        el = el.nodeType ? el : document.querySelector(el);
        const fragment = this.node2Fragment(el);
        this.compile(fragment, el);
    }
    node2Fragment(node) {
        const fragment = document.createDocumentFragment();
        let child;
        while (child = node.firstChild) {
            fragment.appendChild(child);
        }
        return fragment;
    }
    compile(fragment, root) {
        
        root.appendChild(fragment)
    }
}